<?php
namespace Modules\Comment\Providers;
use Konekt\Concord\BaseModuleServiceProvider;
use Modules\Comment\Http\Middleware\ExceptionHandlerMiddleware;

class ModuleServiceProvider extends BaseModuleServiceProvider{

    public function register(){
        parent::register();
        $this->loadRoutesFrom(__DIR__.'/../Http/routes.php');

    }
    //boot()在所有Provider注册完成后执行
    public function boot(){
        parent::boot();//调用父类的boot()
        $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');


    }
}